how to evaluate the derivative of an inverse function